"use strict";
const wxFileSrc = {
        wxAppContent: {

                '.js': `App({
                        onLaunch: function() {
                                // Do something initial when launch.
                        },
                        onShow: function() {
                                // Do something when show.
                        },
                        onHide: function() {
                                // Do something when hide.
                        },
                        globalData: 'I am global data'
                })`,
                '.wxss': `
                /* public style */
                `
        },
        wxPageContent: {
                '.js': ` //get global object
                const app = getApp();
                Page({
                        data: {
                                text: "This is page data."
                        },
                        onLoad: function(options) {
                                // Do some initialize when page load.
                        },
                        onReady: function() {
                                // Do something when page ready.
                        },
                        onShow: function() {
                                // Do something when page show.
                        },
                        onHide: function() {
                                // Do something when page hide.
                        },
                        onUnload: function() {
                                // Do something when page close.
                        },
                        onPullDownRefresh: function() {
                                // Do something when pull down.
                        },
                        onReachBottom: function() {
                                // Do something when page reach bottom.
                        },
                        // Event handler.
                        viewTap: function() {
                                this.setData({
                                        text: 'Set some data for updating view.'
                                })
                        },
                        customData: {
                                hi: 'MINA'
                        }
                })`,
                '.json': `{
                        "navigationBarBackgroundColor": "#ffffff",
                        "navigationBarTextStyle": "black",
                        "navigationBarTitleText": "",
                        "backgroundColor": "#eeeeee",
                        "backgroundTextStyle": "light"
                }`,
                '.wxml': ` < view > {{text}} < /view>`,
                '.wxss' : `view {padding:10px;}`
            }
}

module.exports = { 
        wxFileSrc 
};